package com.cq.teacher.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cq.teacher.mapper.TeacherTaskCollectionMapper;
import com.cq.teacher.domain.TeacherTaskCollection;
import com.cq.teacher.service.ITeacherTaskCollectionService;

/**
 * 领取任务Service业务层处理
 * 
 * @author cq
 * @date 2024-01-06
 */
@Service
public class TeacherTaskCollectionServiceImpl implements ITeacherTaskCollectionService 
{
    @Autowired
    private TeacherTaskCollectionMapper teacherTaskCollectionMapper;

    /**
     * 查询领取任务
     * 
     * @param id 领取任务主键
     * @return 领取任务
     */
    @Override
    public TeacherTaskCollection selectTeacherTaskCollectionById(Long id)
    {
        return teacherTaskCollectionMapper.selectTeacherTaskCollectionById(id);
    }

    /**
     * 查询领取任务列表
     * 
     * @param teacherTaskCollection 领取任务
     * @return 领取任务
     */
    @Override
    public List<TeacherTaskCollection> selectTeacherTaskCollectionList(TeacherTaskCollection teacherTaskCollection)
    {
        return teacherTaskCollectionMapper.selectTeacherTaskCollectionList(teacherTaskCollection);
    }

    /**
     * 新增领取任务
     * 
     * @param teacherTaskCollection 领取任务
     * @return 结果
     */
    @Override
    public int insertTeacherTaskCollection(TeacherTaskCollection teacherTaskCollection)
    {
        return teacherTaskCollectionMapper.insertTeacherTaskCollection(teacherTaskCollection);
    }

    /**
     * 修改领取任务
     * 
     * @param teacherTaskCollection 领取任务
     * @return 结果
     */
    @Override
    public int updateTeacherTaskCollection(TeacherTaskCollection teacherTaskCollection)
    {
        return teacherTaskCollectionMapper.updateTeacherTaskCollection(teacherTaskCollection);
    }

    /**
     * 批量删除领取任务
     * 
     * @param ids 需要删除的领取任务主键
     * @return 结果
     */
    @Override
    public int deleteTeacherTaskCollectionByIds(Long[] ids)
    {
        return teacherTaskCollectionMapper.deleteTeacherTaskCollectionByIds(ids);
    }

    /**
     * 删除领取任务信息
     * 
     * @param id 领取任务主键
     * @return 结果
     */
    @Override
    public int deleteTeacherTaskCollectionById(Long id)
    {
        return teacherTaskCollectionMapper.deleteTeacherTaskCollectionById(id);
    }
}
